package com.app.fallback;

import com.app.bean.dto.User;
import com.app.service.IUserFeignService;
import org.springframework.stereotype.Component;

/**
 * @autor xiaoyu.fang
 * @date 2019/12/12 11:44
 */
@Component
public class UserHystrixFallback implements IUserFeignService {

    @Override
    public User getUserById(String id) {
        User user = new User();
        user.setId(id);
        user.setNickName("小米");
        return user;
    }
}
